package com.yhg.member.controller;


import com.yhg.common.utils.R;
import com.yhg.member.entity.BlAdmin;
import com.yhg.member.service.BlAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 管理员表 前端控制器
 * </p>
 *
 * @author 凌月青缃
 * @since 2021-01-21
 */
@RestController
@RequestMapping("/member/admin")
public class BlAdminController {

    @Autowired
    BlAdminService adminService;

    @GetMapping("list")
    public R list(){
        List<BlAdmin> list = adminService.list();
        return R.ok().data("data",list);
    }

}

